package com.gtq.uhome.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.sql.Timestamp;

/**
 * @author ylhy
 * @Describe 用户消息
 * @create 2020-08-10 10:44
 */
@Data
@ApiModel
@EqualsAndHashCode()
public class UserMsg {

    @ApiModelProperty(value = "消息id")
    private Integer id;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "消息内容")
    private String msg;

    @ApiModelProperty(value = "消息产生时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Timestamp time;
}
